package com.cn.web.user.vo;

import com.cn.empty.EmptyCheck;
import com.cn.validate.decode.JsonSerializerDecode;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * description: UserRegisterPcDTO <br>
 * date: 23.7.14 10:13 <br>
 * author: cn_yaojin <br>
 * version: 1.0 <br>
 */
@Setter
@Getter
@Accessors(chain = true)
@ApiModel(value = "用户注册信息")
public class UserRegisterPcDTO {

    @EmptyCheck(message = "账号不能为空")
    @JsonDeserialize(using = JsonSerializerDecode.class)
    @ApiModelProperty(value = "账号")
    private String userName;

    @EmptyCheck(message = "手机号不能为空")
    @JsonDeserialize(using = JsonSerializerDecode.class)
    @ApiModelProperty(value = "手机号")
    private String phone;

    @JsonDeserialize(using = JsonSerializerDecode.class)
    @EmptyCheck(message = "验证码不能为空")
    @ApiModelProperty(value = "手机验证码")
    private String code;


    @JsonDeserialize(using = JsonSerializerDecode.class)
    @EmptyCheck(message = "密码不能为空")
    @ApiModelProperty(value = "密码")
    private String passWord;


    @JsonDeserialize(using = JsonSerializerDecode.class)
    @EmptyCheck(message = "确认密码不能为空")
    @ApiModelProperty(value = "确认密码")
    private String passWord2;
}
